check for undefined value closing #157