protected function findValue($key, $pool, $default = null)
    {
        if (is_null($pool)) {
            return $default;
        } else {
            return array_key_exists($key, $pool) ? $pool[$key] : $default;
        }
    }
protected function findValue($key, $pool, $default = null)
    {
        if (is_null($pool)) {
            return $default;
        } else {
            return array_key_exists($key, $pool) ? $pool[$key] : $default;
        }
    }
protected function findValue ( $ key , $ pool , $ default = null ) { if ( is_null ( $ pool ) ) { return $ default ; } else { return array_key_exists ( $ key , $ pool ) ? $ pool [ $ key ] : $ default ; } }
Utility method to retrieve a value from an array, or a default if not found.

@param string $key
@param array $pool
@param mixed|null $default
@return mixed|null
Utility method to retrieve a value from an array or a default if not found .