swift session.input

Swift
session.inputs.count > 0
Source

Also in Swift: