Does this work fine if data is nil?