public bool TryGetPath(string name, out string path) { if (Images.Contains(name)) { path = _env.GetMemePath(name); return(true); } else { path = null; return(false); } }