Move if statement