private function validateExecutable($file)
    {
        if (!file_exists($file) || !is_executable($file)) {
            throw new InvalidExecutableException(sprintf('File does not exist or is not executable: %s', $file));
        }

        return true;
    }
private function validateExecutable($file)
    {
        if (!file_exists($file) || !is_executable($file)) {
            throw new InvalidExecutableException(sprintf('File does not exist or is not executable: %s', $file));
        }

        return true;
    }
private function validateExecutable ( $ file ) { if ( ! file_exists ( $ file ) || ! is_executable ( $ file ) ) { throw new InvalidExecutableException ( sprintf ( 'File does not exist or is not executable: %s' , $ file ) ) ; } return true ; }
Validate execuable file.

@access private
@param  string                                                 $file
@return boolean
@throws \JonnyW\PhantomJs\Exception\InvalidExecutableException
Validate execuable file .