I would even reduce this to blackoutGfs && blackoutGfs.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.