protected function guardAgainstInvalidInput($certificateFile) { if (!file_exists($certificateFile)) { throw new Exception('Inputfile' . $certificateFile . ' does not exists'); } }