Code returns empty string if variable is 0
<p>Whenever Capacity is 0 - my PHP code seems to return only the phrase <strong>Showing</strong> instead of <strong>rooms with a capacity of 0</strong>. How can I resolve this?</p>

<pre><code>$allowedFields = array(
    'Capacity',
    'Location',
    'RoomType'
);
// Retrieve only the allowed fields
$fields = array_intersect_key($_POST, array_flip($allowedFields));
// Remove whitespace
$fields = array_map('trim', $fields);
// Remove empty values
$fields = array_filter($fields);
// Filter values for HTML output
$fields = array_map('htmlentities', $fields);
// Create the variables
extract($fields, EXTR_SKIP);
{
$heading = 'Showing';
if(isset($RoomType)) {
    $heading .= ' ' . $RoomType;
}
if(isset($Capacity)) {
    $heading .= sprintf(' rooms with a capacity of %s', $Capacity);
}
if(isset($Location)) {
    $heading .= sprintf(' in %s Park', $Location);
}
}
</code></pre>
