bool isTruthy(Object? object) { if (object == null) return false; if (object is bool) return object; return true; }