You are completely right. I have made a new commit to remove the useless check and improve the formatting.