conditionally initiate a pry session based on a condition