explicit check before invoking callbacks