Removed isShared function. 'getShared' now just returns null if it's not shared.
Removed unneeded jump.
Removed unused code.
Removed 'isDefined' and made getDefine return info about whether a define is avaiable.
Removed returning whether info is available, and just return null if it's not.