public static function getValue($composerJsonPath, $nodeName)
    {
        $composerJsonString = is_string($composerJsonPath);
        $composerJsonReadable = false;

        if ($composerJsonString) {
            $composerJsonReadable = is_readable($composerJsonPath);
        }

        /*
         * Provided path or name of node are invalid?
         * The composer.json file doesn't exist or isn't readable?
         * Name of node is unknown?
         *
         * Nothing to do
         */
        if (!$composerJsonString || !is_string($nodeName) || !$composerJsonReadable || empty($nodeName)) {
            return null;
        }

        $content = file_get_contents($composerJsonPath);
        $data = json_decode($content);

        /*
         * Unknown data from the composer.json file or there is no node with given name?
         * Nothing to do
         */
        if (null === $data || !isset($data->{$nodeName})) {
            return null;
        }

        return $data->{$nodeName};
    }