test if an array is not None
management of dark/flat