handle nil hash or array values on initialize