Assuming that foo is a valid list, the expression fp.isEq( fp.hd(foo), fp.hd( fp.tl(foo) ) ) ...
Review the API for the three functions involved.
Consider all possible relevant cases for the value of foo.