Replace deprecated method and beta3 Array suntax sugar