I think this can be simple `} else if ( $isOK) {` since if `$options['returnInstance']` wasn't empty we wouldn't have reached this condition to begin with.