public static function delete($id) { self::validateId($id); if (!CourseFetcher::courseExists($id)) { throw new Exception("Could not retrieve course to be deleted from database. <br/>\n Maybe some other administrator just deleted it?"); } CourseFetcher::delete($id); }