protected function classExistsInArray( $class, $checkMode, $file, $inProgressAutoloadArray = null, $generatingMode = null )
    {
        if ( ( $checkMode === $generatingMode ) and $inProgressAutoloadArray !== null )
        {
            $classCollision = array_key_exists( $class, $inProgressAutoloadArray );
        }
        else
        {
            $classCollision = array_key_exists( $class, $this->existingAutoloadArrays[$checkMode] );
        }

        if ( $classCollision )
        {
            // If there is a class collisions we want to give feedback to the user.
            $this->logIssue( $class, $checkMode, $file, $inProgressAutoloadArray, $generatingMode );
            return true;
        }
        return false;
    }