Should be `$eventManager !== null`.