public function checkFileArg($name) { $filepath = $this->checkPathArg($name); if (!is_file($filepath)) { cli_error("'{$filepath}' is not a file"); } return $filepath; }