Update booleancondition.cpp

hasValid API