Added isOperator method.