Account::isFile($file)

Version 3.9

Return TRUE, if file exists

Return value

String

Arguments

$file
string Filename

Full documentation

Check if account has a logo.png file:

if ( $this->get('account')->isFile('logo.png') ){
    // There is a logo
}