Build functions to test if SET or EMPTY