isempty nie jest zdefiniowane

isEmpty() not isempty(). Functions is a case sensitive.
Programming Is Fun