Fixed isEmpty method when property is an array