performance and compatibility

- compatibility with php < 5.5
- assigning to a var prevents repeatedly calling the config() method, which should slightly improve performance