classes/Models/Image.php
public function deletedBecauseEmpty()
    {
        if ($file = $this->getAttributeValue('file')) {
            return false;
        }

        if ($this->exists) {
            $this->delete();
        }

        return true;
    }
public function deletedBecauseEmpty()
    {
        if ($file = $this->getAttributeValue('file')) {
            return false;
        }

        if ($this->exists) {
            $this->delete();
        }

        return true;
    }
public function deletedBecauseEmpty ( ) { if ( $ file = $ this -> getAttributeValue ( 'file' ) ) { return false ; } if ( $ this -> exists ) { $ this -> delete ( ) ; } return true ; }
If the file attribtue is empty, this Image has been marked for deletion.
Return true to signal the image was deleted

@return bool
If the file attribtue is empty this Image has been marked for deletion . Return true to signal the image was deleted