Check if datalayer exists and only build a (new) datalayer if neccecary

This to prevent a previous loaded datalayer to be overwritten.