isNotValidLayer -> isValidLayer