fix bug in is_page_wpml logic when array is passed