Update array push to account for precedence