protected function checkFileExistence(Api_Console_ConsoleCommandModel $cmd) { if ($cmd->getStdin()) { if (!file_exists($cmd->getStdin())) { throw new AppKitException("File " . $cmd->getStdin() . " does not exist"); } } if ($cmd->getPipedCmd()) { $this->checkFileExistence($cmd->getPipedCmd()); } }