app\models\File::isNew PHP Method

isNew() public method

Determine if the file is new (its Song record can't be found in the database).
public isNew ( ) : boolean
return boolean
    public function isNew()
    {
        return !$this->song;
    }