Added a function that returns if a location exists or not