check for undefined in concat