use function_exists for checking function existence

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
merge branch origin/QA_4_3

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>