Check for defined vals, not only exists
Merge pull request #45 from e11it/master

Check is defined for order_by, limit,offset opts param. Added offset param for postgresql.