Avoid warning when no fields have content on a node

If a node has no fields (with content) for some reason, the check for the first field ends up hitting the `comment` entry which is `null` (if the Comment module is disabled) rather than an array. Using `isset()` rather than `array_key_exists()` avoids the warning.