check for existing layers