small fix on options.init() callback function detection