public static function notNull($parameter, $name = 'unknown') { if (is_null($parameter)) { throw new \Exception("Please provide a value for the parameter '{$name}'."); } }