public function load(string $resource, callable $loader = null)
    {
        $checkedPath = $this->checkedPathFor($resource);
        if (null == $loader) {
            return file_get_contents($checkedPath);
        }

        return $loader($checkedPath);
    }