import math


def get_smallest(l) :
    """
    Get the smallest element of a list
    :param l: List to inspect
    :return: The element value
    """
    assert type(l) is list
    val = math.inf
    for i in l :
        if i < val :
            val = i
    return val if val != math.inf or math.inf in l else None