Removing unnecessary trap if safe arrays enabled