protected function removeEmpty($collection) {
        foreach ($collection as $key => $value) {
            if (empty($value)) {
                unset($collection[$key]);
            }
        }

        return $collection;
    }
protected function removeEmpty($collection) {
        foreach ($collection as $key => $value) {
            if (empty($value)) {
                unset($collection[$key]);
            }
        }

        return $collection;
    }
protected function removeEmpty ( $ collection ) { foreach ( $ collection as $ key => $ value ) { if ( empty ( $ value ) ) { unset ( $ collection [ $ key ] ) ; } } return $ collection ; }
Remove empty values from collection

@param $collection
Remove empty values from collection