* Now, isEmpty can handle null and undefined parameters