Better check for undefined value, fixes right arrow showing when it shouldn't

Signed-off-by: James Helly <james@wednesday-london.com>