Make apply and rules optional array elements