Replaced old functions with checkByType function
Replaced old functions with checkByType function

Jira-issue: WP-349

krishnabangalore/Webinos-Platform,webinos/Webinos-Platform,webinos/Webinos-Platform,webinos/Webinos-Platform,krishnabangalore/Webinos-Platform,krishnabangalore/Webinos-Platform,krishnabangalore/Webinos-Platform,webinos/Webinos-Platform,webinos/Webinos-Platform,krishnabangalore/Webinos-Platform,webinos/Webinos-Platform,webinos/Webinos-Platform,webinos/Webinos-Platform,webinos/Webinos-Platform,krishnabangalore/Webinos-Platform,krishnabangalore/Webinos-Platform,krishnabangalore/Webinos-Platform,krishnabangalore/Webinos-Platform