I just realised this function produces TRUE if the name of the element is "p", false otherwise. Why do we need a 126 lines to do the same as: