Added all the nested conditional that contains 2  other conditional and an array.