Asserts that value is a boolean and returns it.
If value doesn't exist, this returns defaultValue.
defaultValue
bool asBoolOr(bool defaultValue) => asBool;