using 'in' operator to check for properties.