made title_is_empty call more efficient