Isempty не определен

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