Set $optional to true by default.