foreach($map as $objectkey => $value) works now