title: Objective C - Problem with objectForKey
body: <p>Okay, I'm trying to write a high score function for my app.</p>
  
  <p>My problem is that when no high score has been saved yet, my program crashes.</p>
  
  <p>If I save it with:</p>
  
  <pre><code>[[NSUserDefaults standardUserDefaults] setObject:@"[given string]" forKey:@"firstName"];
  </code></pre>
  
  <p>first, it works fine.  However, if I start up the program for the first time and try to view the high scores with the following code:</p>
  
  <pre><code>first = [[NSString alloc] initWithString:[[NSUserDefaults standardUserDefaults] objectForKey:@"firstName"]];
  </code></pre>
  
  <p>bad things happen.</p>
  
  <p>Basically, is there away to see if nothing yet exist under firstName?  Is there a way to initialize without erasing any name that might already be present?</p>
  
  <p>Thanks.</p>