If there is no marker in the object i create it

If there is no marker in the object i prefer to create it to prevent errors in the function addMarker