Update Oracle.php

Added condition if resource value