As wrote @JanTvrdik or something like `foreach ($this->onCompile ?: array() as $cb)`.