public function isLocalValid()
    {
        $path = $this->getFullPath();
        if (!file_exists($path)) {
            return false;
        }
        return (getimagesize($path) !== false);
    }
public function isLocalValid()
    {
        $path = $this->getFullPath();
        if (!file_exists($path)) {
            return false;
        }
        return (getimagesize($path) !== false);
    }
public function isLocalValid ( ) { $ path = $ this -> getFullPath ( ) ; if ( ! file_exists ( $ path ) ) { return false ; } return ( getimagesize ( $ path ) !== false ) ; }
Checks if the local file is an image that can be used and not
a placeholder or a corrupted file.

@return bool
Checks if the local file is an image that can be used and not a placeholder or a corrupted file .