Refactored check Location to catch Exceptions