This is not optimal. You can get the list and check if it's null. Otherwise it performs 2 look-ups when the key exists.