I'm writing a plugin that adds feature to a SHP-layer, specified as a filename. If the layer already is loaded in Qgis, I want to check for and use the loaded layer instead of creating a new from the same SHP-file. Is this even possible?