Added unknown symbol matching to hasMatch