Rewrite operation_requirements_match()

It was wrongly implemented