`_expected.w !== undefined ? _expected.w : 1`

PS. undefined is a data type, not a string