isEmpty não é uma função JavaScript

isEmpty() not isempty() 
Programming Is Fun