this can just be:

return (headerTitle != null && pos == 0);