protected function isFile($value)
    {
        $value = strval(str_replace("\0", "", $value));

        return strlen($value) <= PHP_MAXPATHLEN && is_file($value);
    }
protected function isFile($value)
    {
        $value = strval(str_replace("\0", "", $value));

        return strlen($value) <= PHP_MAXPATHLEN && is_file($value);
    }
protected function isFile ( $ value ) { $ value = strval ( str_replace ( "\0" , "" , $ value ) ) ; return strlen ( $ value ) <= PHP_MAXPATHLEN && is_file ( $ value ) ; }
Checks if given data is file, handles mixed input

@param  mixed $value
@return boolean
Checks if given data is file handles mixed input