Added missing 'removeEmpty' in method