behavior of "locationAvailable" function now matches its name