if m is a mass, v and c are velocities, p is a momentum, h is the Planck constant, λ a length. On the other hand, if the units of the right hand side do not combine to [mass][length] /[time], it cannot be a valid expression for some energy.