adds validation for length param
makes sure Length is > 0