The function only works for positive integers. If the input is negative or a non-integer, it returns [].

