Remove unecessary check for location object