Use typeof instead
Add mixin for boilerplate workaround