remove unnecessary is_array check, thanks Renato