Stop Function?

Stop Function?

Is there a function to tell jquery to only do something on the first instance that matches then to stop.

For example I add a class to a LI to an UL with the below but it adds the LI to all ULs under it.
  1. $("div#container ul").prepend("<li>Home</li>");

Original code:
  1. <ul>
  2.   <li>
  3.     <ul>
  4.       <li>item</li>
  5.     </ul>
  6.   </li>
  7. </ul>

Code needed:
  1. <ul>
  2.   <li>Home</li>
  3.   <li>
  4.     <ul>
  5.       <li>item</li>
  6.     </ul>
  7.   </li>
  8. </ul>

Currently Output code:
  1. <ul>
  2.   <li>Home</li>
  3.   <li>
  4.     <ul>
  5.       <li>Home</li>
  6.       <li>item</li>
  7.     </ul>
  8.   </li>
  9. </ul>