Minor Bug Fixes

- Ensure pre-existing string `xml_config functionality` isn't broken
while adding in optional array functionality
- Ensure `realpath` doesn't throw a PHP error due to being passed an
array.
- Minor code alterations to existing app coding standard