public function isImage( $exif=null )
    {
        $_ext   = empty($exif) ? self::$img_extensions : self::$exif_extensions;
        $tbl    = explode('.', $this->filename);
        $last   = end($tbl);
        return (bool) ($this->pathExists() && $this->exists() && in_array(strtolower($last), $_ext));
    }
public function isImage( $exif=null )
    {
        $_ext   = empty($exif) ? self::$img_extensions : self::$exif_extensions;
        $tbl    = explode('.', $this->filename);
        $last   = end($tbl);
        return (bool) ($this->pathExists() && $this->exists() && in_array(strtolower($last), $_ext));
    }
public function isImage ( $ exif = null ) { $ _ext = empty ( $ exif ) ? self :: $ img_extensions : self :: $ exif_extensions ; $ tbl = explode ( '.' , $ this -> filename ) ; $ last = end ( $ tbl ) ; return ( bool ) ( $ this -> pathExists ( ) && $ this -> exists ( ) && in_array ( strtolower ( $ last ) , $ _ext ) ) ; }
Returns TRUE if the object is an image
Returns TRUE if the object is an image