Fixing getOne to not error on 0 results

Adding a simple isset to check if res[0] is actually set, if so return it if not return null so we don't have a floating result.
Merge pull request #2 from aFreshMelon/patch-1

Fixing getOne to not error on 0 results