Fixed up smartWhere object for booleans, replicated lodash.compact but also allowed booleans.