public static function isFileReadable($file)
    {
        $result = false;

        if (!file_exists($file)) {
            return $result;
        }
        if (!is_file($file)) {
            return $result;
        }
        if (!is_readable($file)) {
            return $result;
        }

        $result = true;

        return $result;
    }
public static function isFileReadable($file)
    {
        $result = false;

        if (!file_exists($file)) {
            return $result;
        }
        if (!is_file($file)) {
            return $result;
        }
        if (!is_readable($file)) {
            return $result;
        }

        $result = true;

        return $result;
    }
public static function isFileReadable ( $ file ) { $ result = false ; if ( ! file_exists ( $ file ) ) { return $ result ; } if ( ! is_file ( $ file ) ) { return $ result ; } if ( ! is_readable ( $ file ) ) { return $ result ; } $ result = true ; return $ result ; }
Check if the file is missing or is not readable

@param string $file Path to file
@return bool True on success, false otherwise
Check if the file is missing or is not readable