- Logs removed from php
- checks refined with usage of typeof
- var scoping