More idiomatic nil check.