refactor(options): abstract check for field declared within option