Add WhenAnyTrue function, can return first result matched the condition