Update documentation
Rename variable
Move check down for access to
Check .GetType rather than object directly