if statement for array [0] added