Change method of getting first array entry