AMEC-1862: check for undefined