Switch to Hash#delete_if instead of non-standard compact. Allowed to catch blanks too