Nitpicking:

* `!empty()` is more idiomatic than `count() > 0`
* inconsistent whitespace: `function_exists( 'apache_get_modules')`