Simple: `if (!$calculator->isConfigurable()) {` is enough.