Change function name from cleanEmptyFields to getNonEmptyItems and Divide its code into smaller functions
Change function name from cleanEmptyFields to getNonEmptyItems and Divide its code into smaller functions