API.Utils: Pythonic fix to if statement.