valid? method for operation class