added check for multilayer network initialization