how to check if property is legal