Helpers for simple matching
check for key existence in pattern#[]