I suck at PHP
Removed check on $size and $offset to see if they're integers
Let PHP do its automagic thing for the comparison checks