Moved if statement in flat rate shipping