const isBoolean = val => typeof val === 'boolean';