Warn and return undefined if value is undefined