A study on rate-type constitutive equations and the existence of a free energy function