seems input/requirements validation is not a strong point ;(
$config gets read from a yml file without any validation .. this will cause Notices and Warnings; probably Errors. Think it would be a good idea to make sure variables are verified befor use.