`$admin` ?

You can use simply `if (!$controllersCreated) {` rather than a counter given it's effectively a boolean check