Creating check to disallow duplicate properties.