remove empty if statement