IDE: Added defensive check.
IDE: Minor code styling.