Add casting to bool for expression regex matches

Evaluating regular expressions returns number of matches (so 1 if exact match exists) and matcher is using strict comparison === in order to evaluate such value. Simple casting to boolean fixes the problem.