ISSUE-5246: Using isset() in if-condition for compatibility with E-STRICT error setting.