Added function has_joined to check if a push_id is present in a rcpts array.
Added tests for function is_array and is has_joined.