Added array check to avoid error message for non array values

Change-Id: I26b75b9c866a9589b748893b5a424ed633d4941d