check if property_exists before accessing it in a PUT