Improved variable name.
Refactored function to remove duplicate line, and pointless ternary.
Merge branch 'TernaryRefactor' into InjectionDefinitionByClassHierarchy

* TernaryRefactor:
  Refactored function to remove duplicate line, and pointless ternary.
Fixed issue where aliasing a class after sharing it fails.
Merge branch 'CheckSharingAndAliasing' into InjectionDefinitionByClassHierarchy

* CheckSharingAndAliasing:
  Fixed issue where aliasing a class after sharing it fails.
First working version of object sharing by hierarchy.
Added note.