Handle case when array contain objects #1