refs 5584 use Array#first method to get first object of array