use containsKey as contains checks that a value is present which isn't what's desired