Fix logic for checking google maps exists