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.