Business loses greater than eventual profit

If you showed a business loss for 4 years and a profit for the 5th year but it was not greater than the losses in the previous years, will the IRS declare your business a hobby?