changed check for config parameter to is_array