$ 0 0 findFirst returns an Optional. Looks like you just need to check whether there's anything in that Optional.