Adjusted return types in the comments above the method; Integer isn't a JavaScript type.