title: get_post_meta always returns an array
body: <p>I'm using the following code to enable an if/else statement. </p>
  
  <pre><code>&lt;?php
  $types = array('.pdf', '.doc', '.xls');
  $filename = array(get_post_meta($post-&gt;ID, 'mjwlink-url', TRUE));
  if(0 &lt; count(array_intersect(array_map('strtolower', $filename), $types))) {
     echo 'One';
  } else {
     echo var_dump($filename);
  }?&gt;
  </code></pre>
  
  <p>The problem I have is that get_post_meta always returns an array in the format even when $single is set to true</p>
  
  <p><code>array(1) { [0]=&gt; string(34) "http://www.crimeandjustice.org.uk/" }</code></p>
  
  <p>Any help appreciated.</p>