Fixed array check and removed extra _