ouch - big red flag code. If u see something like this it's most probably a honeypot. Always remember that `address(this).balance` includes also `msg.value` of the current transaction (the if statement will only be true if balance=0 & transfer will fail since too little funds).