Check if duration got a valid value