Unsuccessful takeovers can be good times to buy, subject to certain conditions