Prevent undefined values