get_param bug fix

reg_exp does not return a logical result so logical
operators can not be used with its results. Fixed to test
results for emptyness rather than falsity