fix for case when comparator is not a function

as typeof(a===b) === 'boolean'