Convert Array Of Objects To Single Object Detection