You need to check if withAnyOfTheseTypes is not null