If I'm over 52

can I add the maximum ($7000) to a SEP IRA that I have not contributed to in over 10 years, even though I had very little self-employment income? Also, what if for the self-employment income I did have, I took deductions so it ended up negative, does that affect the age 52 thing?