Used conditional inside of array

Used conditional inside of array