Thank you for both the answers.
But the first one tells whether the parent is category.
And the second one takes the $post handler to tell whether the current page is parent or not.
But I have only the ID and I cant proceed with the $post variable.
Within my code, which is as follows, I am able to found out by ID that whether the current page is Parent or not.
// Getting the Page ID in $sel_page_id.
foreach($include_array as $sel_page_id)
{
//Is it a parent
if(wp_list_pages("title_li=&child_of=$sel_page_id&echo=0" )):
echo $sel_page_id." is a parent";
//else it is not!
endif;
It works perfectly but the only problem, it gives me all the parents. For example, It will give me with respect to the upper example, the following Pages.
Home Link 1
Home Link 2
Home Link 3
Home Link 4
Sub Link 42 <—– I just dont want that, as it is not the Top Parent.
Please help .. ??