can you add some braces round this please so that it is obvious what the if and else apply to.