CheckLayersName function

Check layers names for the input list