instead of using `(bool)`, can we use `intval`?  This is picky, but since `$methodsUsed` is an integer, this makes more sense.  Also, I prefer `intval` to `(int)`, because PHP is trending towards this method of casting