Implement check for OP_RETURN