update method "isNull" to "isEmpty"