Update booleancondition.h

hasValid API