Bug fix, check $configuration to be an array inside setConfiguration()