extending the is_parallel method to more than two lines