clean up validation of function call
refactor out into scanners to help locate any leftover phpindex call
rename to calculator
extracted the index lookup into its own class so it can be called outside of the gettype lookup
extracted the index lookup into its own class so it can be called outside of the gettype lookup