Use array instead of string on the foreach