Changed null condition with IsEmpty

location is instantiated, so it doesn't need to be tested as different from null. But it's good to check if the position of the point.