Search For A Displaylayer Help

I want to create a Display Layer with a certain name, if there is no other layer with that same name, but I have no idea of how to search for a layer.
Does anyone knows how to do that?

Thanks

this way for instance:

CODE
{
    string $name = "theNameYouAreSearchingFor";
    if (size(ls -type "displayLayer" $name))
        print ($name + " already exists!\n");
    else
        print ($name + " does not exist!\n");
}

Thanks

you can also use the objExists command it will tell you if a node exists that is that name