Using `!= nil` is considered bad Ruby style. Could you please switch to the `!x.nil?` syntax?