function dbem_location_has_events($location_id) { $EM_Location = new EM_Location($location_id); return $EM_Location->has_events(); }