Yes.  The value of the second argument can be positive or negative and if suffix is longer it's impossible for this function to equal anything other than -1.  However, your question brings up a good point, I don't need `str.length - suffix.length` because simply `-suffix.length` will work exactly the same.