@jcheng5 mentioned this as well, seems that's the more idiomatic method--I've updated the check.