add length check before type checks in isEmpty
add test for non enum prop