Im using a map function to loop over objects and I want to access the first element of each objects array property. however some arrays have no elements in them so they are