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