adds better truthy check for limit param