In any prosecution based on conduct which is justifiable under this chapter, justification is a defense.
18 Pa.C.S. § 502