Add try method to all objects

array.try(:first) avoids typing array && array.first