I would even reduce this to whiteoutGfs && whiteoutGfs.length. This is a low level library and it's expected that the users will heed to the expected data types. Data validation is an unnecessary overhead.