removed unecessary util function for isEmpty