public function printTheContentOfFile($filename) { if (is_file($filename)) { echo file_get_contents($filename); } else { throw new \RuntimeException("'{$filename}' doesn't exists."); } }