[TIMOB-17227] Remove typeof === 'boolean' check