To quickly verify your algebraic steps, check the dimensions or units of the terms inside the parentheses. Since $hc/\lambda$ represents energy, the product $\lambda\phi$ ensures that both terms in the numerator have matching units of (Energy $\times$ Length), which makes the expression dimensionally correct.