public static function by_name($name = '') { if (!$name) { return array(); } return self::get(array("name" => $name)); }