Fix typo in docs & add "if" keyword in the example