Added a has_gateway() function