Fixed a notice level error when excluded is not an array