Updating deprecated `nil?` calls