public boolean isOptionalEncoding()
    {
        return encoding.presence() == OPTIONAL;
    }
Is the encoding presence is optional or not?

@return true if the encoding presence is optional or false if not.
sbe-tool/src/main/java/uk/co/real_logic/sbe/ir/Token.java