Use array_keys instead of loop