removed attributes from array that are nil or empty?