changed comments; refactored isNullOrEmpty