Handles empty urls