Adding check to resolve warning.