Change isEmpty determinaton in Cons to be more failsafe