getData() now returns null if the input key doesn't exist