check for property on object