def pop(self, sexp):
        if sexp and isinstance(sexp, list):
            return sexp[1:] if self.matches(sexp[0]) else None