nitpick: 
If using a default value for the `get()` the $offset definition above and `if` block don't seem needed (and vice-versa).