Added is_resource for checking