There are several factors to consider before tapping Social Security.