Re-create validateProperty function